.class Lcom/waiqin365/lightapp/kehu/view/cw;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/text/TextWatcher;


# instance fields
.field final synthetic a:Landroid/content/Context;

.field final synthetic b:Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;Landroid/content/Context;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/kehu/view/cw;->b:Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;

    iput-object p2, p0, Lcom/waiqin365/lightapp/kehu/view/cw;->a:Landroid/content/Context;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public afterTextChanged(Landroid/text/Editable;)V
    .locals 4

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/cw;->b:Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;->l()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/cw;->b:Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;->getContext()Landroid/content/Context;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/view/cw;->b:Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;->l()Ljava/lang/String;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/view/cw;->b:Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;

    invoke-virtual {v2}, Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;->m()Ljava/lang/String;

    move-result-object v2

    iget-object v3, p0, Lcom/waiqin365/lightapp/kehu/view/cw;->b:Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;

    invoke-virtual {v3}, Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;->d()Ljava/lang/CharSequence;

    move-result-object v3

    invoke-interface {v3}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v0, v1, v2, v3}, Lcom/waiqin365/lightapp/visit/c/b;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    :cond_0
    return-void
.end method

.method public beforeTextChanged(Ljava/lang/CharSequence;III)V
    .locals 2

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/cw;->b:Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;

    iget-boolean v0, v0, Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;->t:Z

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/cw;->b:Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/view/cw;->b:Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;

    iget-object v1, v1, Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;->a:Landroid/widget/EditText;

    invoke-virtual {v1}, Landroid/widget/EditText;->getSelectionEnd()I

    move-result v1

    iput v1, v0, Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;->i:I

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/cw;->b:Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;

    invoke-interface {p1}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;->s:Ljava/lang/String;

    :cond_0
    return-void
.end method

.method public onTextChanged(Ljava/lang/CharSequence;III)V
    .locals 4

    const/4 v3, 0x0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/cw;->b:Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;->a:Landroid/widget/EditText;

    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/cw;->b:Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;

    iget-boolean v0, v0, Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;->x:Z

    if-eqz v0, :cond_5

    invoke-virtual {v1}, Ljava/lang/String;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/c/b;->b(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    :goto_0
    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_0

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/view/cw;->b:Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;

    iget-object v1, v1, Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;->a:Landroid/widget/EditText;

    invoke-virtual {v1, v0}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/view/cw;->b:Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;

    iget-object v1, v1, Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;->a:Landroid/widget/EditText;

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v2

    invoke-virtual {v1, v2}, Landroid/widget/EditText;->setSelection(I)V

    :cond_0
    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v0

    if-lez v0, :cond_3

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/cw;->b:Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;

    iget-boolean v0, v0, Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;->f:Z

    if-eqz v0, :cond_3

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/cw;->b:Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;->d:Landroid/view/View;

    invoke-virtual {v0, v3}, Landroid/view/View;->setVisibility(I)V

    :goto_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/cw;->b:Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;->g:Lcom/waiqin365/lightapp/kehu/view/cz;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/cw;->b:Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;->g:Lcom/waiqin365/lightapp/kehu/view/cz;

    invoke-interface {v0, p1, p2, p3, p4}, Lcom/waiqin365/lightapp/kehu/view/cz;->a(Ljava/lang/CharSequence;III)V

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/cw;->b:Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;

    iget-boolean v0, v0, Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;->t:Z

    if-nez v0, :cond_4

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/cw;->b:Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;

    iget-boolean v0, v0, Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;->v:Z

    if-eqz v0, :cond_4

    const/4 v0, 0x2

    if-lt p4, v0, :cond_2

    invoke-interface {p1}, Ljava/lang/CharSequence;->length()I

    move-result v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/view/cw;->b:Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;

    iget v1, v1, Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;->i:I

    add-int/2addr v1, p4

    if-lt v0, v1, :cond_2

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/cw;->b:Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;

    iget v0, v0, Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;->i:I

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/view/cw;->b:Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;

    iget v1, v1, Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;->i:I

    add-int/2addr v1, p4

    invoke-interface {p1, v0, v1}, Ljava/lang/CharSequence;->subSequence(II)Ljava/lang/CharSequence;

    move-result-object v0

    invoke-interface {v0}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;->a(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/cw;->b:Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;

    const/4 v1, 0x1

    iput-boolean v1, v0, Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;->t:Z

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/cw;->a:Landroid/content/Context;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/view/cw;->b:Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;->getContext()Landroid/content/Context;

    move-result-object v1

    const v2, 0x7f0805ba

    invoke-virtual {v1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1, v3}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/cw;->b:Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;->a:Landroid/widget/EditText;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/view/cw;->b:Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;

    iget-object v1, v1, Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;->s:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/cw;->b:Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;->a:Landroid/widget/EditText;

    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v1

    instance-of v0, v1, Landroid/text/Spannable;

    if-eqz v0, :cond_2

    move-object v0, v1

    check-cast v0, Landroid/text/Spannable;

    invoke-interface {v1}, Ljava/lang/CharSequence;->length()I

    move-result v1

    invoke-static {v0, v1}, Landroid/text/Selection;->setSelection(Landroid/text/Spannable;I)V

    :cond_2
    :goto_2
    return-void

    :cond_3
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/cw;->b:Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;->d:Landroid/view/View;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    goto :goto_1

    :cond_4
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/cw;->b:Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;

    iput-boolean v3, v0, Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;->t:Z

    goto :goto_2

    :cond_5
    move-object v0, v1

    goto/16 :goto_0
.end method
